﻿using System;
using System.Collections.Generic;
using Zinnia.EF.Test.Models;

namespace Zinnia.EF.Test
{
    class Program
    {
        static void Main(string[] args)
        {
            var d = DateTime.Now.Date.ToString("yyyyMM");
            var destination = new Destination
            {
                Country = "qwqe",
                Description = "qweq",
                Name = "123qweqe131",
                Age = 1231312
            };
            using (var context = new ZinniaEFBaseContext())
            {
                try
                {
                    context.Set<Destination>().Add(destination);
                    context.SaveChanges();
                }
                catch (Exception ex)
                {
                    throw ex;
                }
            }
            Console.WriteLine("OK");
            Console.Read();
        }
    }
}
